/*
 * Represents each Panel in the Calendar, and allows us
 * to define text/graphics functions for each panel.
 */

package oes;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;

/**
 *
 * @author menderleit
 */
public class CalendarPanel extends JPanel{

    Lesson content;
    String className;
    String staffName;
    final int MONDAY = 1;
    final int TUESDAY = 2;
    final int WEDNESDAY = 3;
    final int THURSDAY = 4;
    final int FRIDAY = 5;
    final int SATURDAY = 6;
    final int SUNDAY = 7;
    
    public CalendarPanel() {
        super();
        content = null;
        className = "";
        staffName = "";
    }
    
    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        if( content != null ) {
            g.setColor(Color.black);
            g.drawString(className,3,15);
            g.setColor(Color.red);
            g.drawString("RoomID: "+content.getCroom(),3,30);
            g.setColor(Color.blue);
            g.drawString("T: "+staffName,3,45);
        }
    }
    
    public void setContent(Lesson l) {
        content = l;
    }

    public void setClassName(String className) {
        this.className = className;
    }
    
    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }
}
